package com.net.xpay.common.dao.admin.rbac;

import com.net.xpay.common.domain.admin.rbac.Menu;
import com.net.common.dao.PagedMapper;
import com.net.common.annotation.DataCommon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataCommon
@Repository
public interface MenuMapper extends PagedMapper<Long, Menu> {
    List<Menu> findByAdminUserId(@Param("adminUserId") Long adminUserId);

    /**
     * 获取所有菜单数据(不包含按钮)
     * @return
     */
    List<Menu> listNoButtonMenu();

}
